package com.punai.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.google.protobuf.ServiceException;
import com.punai.system.bo.cs.EpPermissionBo;
import com.punai.system.domain.CsRole;

import java.util.List;

public interface CsRoleService extends IService<CsRole> {
    List<CsRole> selectRoleList(CsRole role);

    Boolean checkRoleNameUnique(CsRole role);

    int insertRole(CsRole role) ;

    EpPermissionBo getEpPermission(CsRole role);

    CsRole getCsRole(String id, Long companyId);

    int updateRole(CsRole role) throws ServiceException;

    int deleteRole(Long[] roleIds, Long companyId);
}
